<?php


namespace app\admin\controller;



class Test
{
    /**
     * @api {get}  admin/Test/postUser 测试管理
     * @apiVersion 0.1.0
     * @apiName postUser
     * @apiGroup Test
     *
     * @apiParam {Number} id Users unique ID.
     * @apiHeader {string} AdminToken Users unique AdminToken.
     * @apiHeader {string} AdminAdminId Users unique AdminToken.
     *
     * @apiSuccess {String} firstname Firstname of the User.
     * @apiSuccess {String} lastname  Lastname of the User.
     * @apiSampleRequest admin/Test/postUser
     * @apiSuccessExample Success-Response:
     *     HTTP/1.1 200 OK
     *     {
     *       "id": 1,
     *       "name": "张三"
     *     }
     *
     * @apiError UserNotFound The id of the User was not found.
     *
     * @apiErrorExample Error-Response:
     *     HTTP/1.1 404 Not Found
     *     {
     *       "error": "UserNotFound"
     *     }
     */

    public function postUser()
    {
        $data = [
            "id" => 1,
            "name" => "张三"
        ];
        return json_encode($data);

    }
}
